﻿using DingTalk.Core.Models;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DingTalk.Corp.Auth.Models
{
    /// <summary>
    /// 
    /// </summary>
    [JsonObject]
    public class UserIdResponse: StandardResponse
    {
        /// <summary>
        /// 
        /// </summary>
        [JsonProperty("result")]
        public UserIdResult Result
        {
            get;
            set;
        }
    }
    /// <summary>
    /// 
    /// </summary>
    [JsonObject]
    public class UserIdResult
    {
        /// <summary>
        /// 
        /// </summary>
        [JsonProperty("userid")]
        public string UserID
        {
            get;
            set;
        }

        /// <summary>
        /// 
        /// </summary>
        [JsonProperty("contact_type")]
        public int ContactType
        {
            get;
            set;
        }
    }
}
